// 类的自读属性

export {}
class Person {
  public name: string
  private age: number
  protected readonly gender: number

  constructor(name: string, age: number) {
    this.name = name
    this.age = age
    this.gender = 1
  }

  sayHi(msg: string) : string {
    return this.name + msg
  }
  
}

const per = new Person("tiom", 122)
// per.gender = 123
